<%@ page contentType="text/html;charset=GBK"%> 
<%@ page import = " org.jfree.chart.*"%> 
<%@ page import = " org.jfree.chart.entity.*"%> 
<%@ page import ="org.jfree.chart.servlet.*"%> 
<%@ page import ="control.jfree.Curve"%>
<% 
ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection()); 
String filename = ServletUtilities.saveChartAsPNG(new Curve().getChart(), 500, 300, info, session);     
String graphURL = request.getContextPath() + "/servlet/DisplayChart?filename=" + filename;%> 
<html> 
<head> 
</head> 
<body> 
<table border=0> 
<tr> 
<td> 
   <br> 
<img src="<%=graphURL%>" width=500 height=300 border=0 usemap="#<%= filename %>"> 

</td> 
</tr> 
</table> 
</body> 
</html> 
